<?php 
global $options;
foreach ($options as $value) {
if (get_settings( $value['id'] ) === FALSE) { $$value['id'] = $value['std']; } else { $$value['id'] = get_settings( $value['id'] ); } }
      ?>
<div id="right">
<div class="over">
<p class="slide2"><a href="#" class="btn-slide2">Рубрики</a></p>
<div id="panel2">
<div class="blok2">
 <ul>
 <?php
$cats = explode("<br />",wp_list_categories('title_li=&echo=0&depth=1&style=none'));
$cat_n = count($cats) - 1;
for ($i=0;$i< $cat_n;$i++):
if ($i<$cat_n/2):
$cat_left = $cat_left.'<li>'.$cats[$i].'';
elseif ($i>=$cat_n/2):
$cat_right = $cat_right.'<li>'.$cats[$i].'</li>';
endif;
endfor;
?>
<ul class="aleft"><?php echo $cat_left;?></ul>
<ul class="aright"><?php echo $cat_right;?></ul>
			</ul>
			<div style="clear:both;"></div>
</div>
</div>
<p class="slide3"><a href="#" class="btn-slide3">Архивы</a></p>
<div id="panel3">
<div class="blok2">
  <li class="arsip clearfix">
           <ul>
          <?php wp_get_archives('type=monthly'); ?>
        </ul>
        <br class="clear" />
      </li>
</div>
</div>
<p class="slide4"><a href="#" class="btn-slide4">Метки</a></p>
<div id="panel4">
<div class="blok2">
        <ul>
	    	<?php wp_tag_cloud('smallest=7&largest=16&number=250&format=flat&orderby=name&order=ASC'); ?>
  </ul>
</div>
</div>
<?php if ($kon_drop_loc == "Включить") { ?> 
 <?php include(TEMPLATEPATH."/drop.php");?> 
<?php } else { ?> <?php } ?> 
</div><!--over-->
<div class="cat2">
<h2>Поиск</h2>
</div>
<div class="blok2">
<form id="searchform" method="get" action="<?php echo $_SERVER['PHP_SELF']; ?>">
		<input type="text" value="Поиск: запрос+enter..." name="s" id="s" onfocus="if (this.value == 'Поиск: запрос+enter...') {this.value = '';}" onblur="if (this.value == '') {this.value = 'Поиск: запрос+enter...';}" />
	</form>  
		<div style="clear:both;"></div>
</div>

<?php if ($kon_feat_loc == "Включить") { ?> 
 <?php include(TEMPLATEPATH."/feat.php");?> 
<?php } else { ?> <?php } ?> 

<div class="cat2">
<h2>обсуждение</h2>
</div>
<div class="blok2">
 <ul><?php if(function_exists('get_recent_comments')) { get_recent_comments(); } ?></ul>
</div>
<?php if ( !function_exists('dynamic_sidebar')
	|| !dynamic_sidebar(1) ) : ?>
		<?php endif; ?>
</div>